﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="holiday_edit.aspx.cs" Inherits="AnyOffice.general.system.attend.holiday_edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="/module/date_selector/popcalendar.css" type="text/css" rel="stylesheet">
			<script src="/module/date_selector/popcalendar.js"></script>
			<script src="/aspnet_client/core/function.js"></script>
			<script language="JavaScript">

function CheckForm()
{
	if(document.Form1.txtBeginDate.value == "")
   {
	 alert("起始日期不能为空！");
	 document.Form1.txtBeginDate.focus();
	 return (false);
   }
   
   if(!checkIsDate(document.Form1.txtBeginDate.value))
   {
	 alert("起始日期不正确！");
	 document.Form1.txtBeginDate.focus();
	 return (false);
   }
   
   if(document.Form1.txtEndDate.value == "")
   {
	 alert("截止日期不能为空！");
	 document.Form1.txtEndDate.focus();
	 return (false);
   }
   
   if(!checkIsDate(document.Form1.txtEndDate.value))
   {
	 alert("截止日期不正确！");
	 document.Form1.txtEndDate.focus();
	 return (false);
   }
   
    if(!checkDateEarlier(document.Form1.txtBeginDate.value, document.Form1.txtEndDate.value))
   {
     alert("开始日期不能大于结束日期！");
	 return (false);   
   }
   
   return true;
}
			</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG src="/images/edit.gif" align="absMiddle"><SPAN class="big3"> 编辑考勤节假日</SPAN>
						</TD>
					</TR>
				</TABLE>
				<TABLE class="small" cellSpacing="1" cellPadding="3" width="450" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableData" noWrap>起始日期：</TD>
						<TD class="TableData" noWrap><INPUT class="BigInput" id="txtBeginDate" type="text" maxLength="10" size="10" name="txtBeginDate"
								runat="server"><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtBeginDate,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
						</TD>
					<TR>
						<TD class="TableData" noWrap>结束日期：</TD>
						<TD class="TableData" noWrap><INPUT class="BigInput" id="txtEndDate" type="text" maxLength="10" size="10" name="txtEndDate"
								runat="server"><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtEndDate,'yyyy-mm-dd','');" src="/module/date_selector/calendar.gif"
								align="absMiddle" border="0">
						</TD>
					</TR>
					<TR>
						<TD class="TableControl" noWrap align="center" colSpan="2"><INPUT class="BigButton" title="确定" onclick="return CheckForm();" type="submit" value="确定"
								name="button"> <INPUT class="BigButton" onclick="location='holiday.aspx'" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
			</asp:panel><asp:literal id="litMessage" runat="server"></asp:literal></form>
	</body>
</HTML>
